package com.demo.dao;

import com.demo.dao.mapper.MePageMapper;
import org.apache.ibatis.session.SqlSession;

import java.util.ArrayList;
import java.util.List;

public class MePageDao extends BaseDao {
    private static final String ENVIRONMENT_CU = "CU";

    //获取Brokerage下载链接
    public List<String> selectDownloadUrlList(){
        List<String> downloadList= new ArrayList<>();

        try (SqlSession session = openSession(ENVIRONMENT_CU)){
            MePageMapper mapper =session.getMapper(MePageMapper.class);
            downloadList= mapper.selectDownloadUrlList();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return downloadList;
    }
}
